<script setup>
import { useRouter, useRoute } from 'vue-router'
const router = useRouter()
const route = useRoute()
const login = () => {
  const redirect = route.query.redirect
  router.push(redirect || '/')
}
</script>

<template>
  <div class="app-page">login</div>
  <button @click="login">登录</button>
</template>

<style scoped></style>
